Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CAPTCHA to Contact form #881

Closed
wants to merge 2 commits into from

Conversation

KyleMaas
Copy link
Contributor

@KyleMaas KyleMaas commented Sep 17, 2023

Description

One of my installs receives a lot of spam through the Contact form. This adds a CAPTCHA to the Contact form to protect against spam.

Steps

Pre-deploy
(EDIT) If upgrading an existing installation, make sure to run pip install -r requirements.txt to install the CAPTCHA module.

Per the documentation at:

https://django-simple-captcha.readthedocs.io/en/latest/usage.html#adding-to-a-form

You have to run python manage.py migrate for this to work. It adds information to the database that the CAPTCHA plugin requires. Without it, the form will not work. But this is standard procedure for MediaCMS version upgrades anyway so I don't see it as a major issue.

Post-deploy

@mgogoulos
Copy link
Contributor

Thanks for the PR but I will decline it, as it is too specific!

@mgogoulos mgogoulos closed this Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants